# encoding = utf-8
class CreateGrants < ActiveRecord::Migration
  def self.up
    create_table :grants do |t|
      t.integer :user_id
      t.integer :voucher_id

      t.timestamps
    end
    
    add_index :grants, :user_id,                :unique => false
    add_index :grants, :voucher_id,             :unique => false
  end

  def self.down
    drop_table :grants
  end
end
